package com.suray.basic.wcs.path.enums;

public enum DirectionStatus {

    XD_13(19), //0x13 == 19
    PD_24(36),//0x24 == 36
    XD_1(1), // 5代车巷道
    PD_2(2),// 5代车坡道
    UNKNOWN(-1);
    private int statusNum;

    DirectionStatus(int statusNum) {
        this.statusNum = statusNum;
    }

    public static DirectionStatus parseStatus(int statusNum) {
        for (DirectionStatus r : DirectionStatus.values()) {
            if (r.getStatusNum() == statusNum) {
                return r;
            }
        }
        return UNKNOWN;
    }

    public int getStatusNum() {
        return statusNum;
    }

}